package org.wukongcrm.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 供应商表
    */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "supplier")
public class Supplier implements Serializable {
    /**
     * 供应商编号
     */
    @TableId(value = "supplier_no", type = IdType.INPUT)
    private Integer supplierNo;

    /**
     * 供应商编码
     */
    @TableField(value = "supplier_code")
    private String supplierCode;

    /**
     * 供应商名称
     */
    @TableField(value = "supplier_name")
    private String supplierName;

    /**
     * 是否是受托供应商(0是，1否)
     */
    @TableField(value = "supplier_isno")
    private Integer supplierIsno;

    /**
     * 供应商类别(0伙伴型，1优先型，2重点型，3商业型)
     */
    @TableField(value = "supplier_type")
    private Integer supplierType;

    /**
     * 供应商级别(0,A,1B,2C,3D)
     */
    @TableField(value = "supplier_grade")
    private Integer supplierGrade;

    /**
     * 负责人表id
     */
    @TableField(value = "owner_user_id")
    private Integer ownerUserId;

    /**
     * 地址
     */
    @TableField(value = "supplier_address")
    private String supplierAddress;

    /**
     * 默认币别
     */
    @TableField(value = "default_currency")
    private Integer defaultCurrency;

    /**
     * 详细地址
     */
    @TableField(value = "detail_address")
    private String detailAddress;

    /**
     * 信用额度
     */
    @TableField(value = "credit_limit")
    private Integer creditLimit;

    /**
     * 结算期限
     */
    @TableField(value = "settlement_deadline")
    private Integer settlementDeadline;

    /**
     * 合同到期
     */
    @TableField(value = "contract_expiration")
    private Date contractExpiration;

    /**
     * 备注
     */
    @TableField(value = "notes")
    private String notes;

    /**
     * 附件id
     */
    @TableField(value = "file_id")
    private Integer fileId;

    /**
     * 审核状态(0审核中，1通过，2拒绝)
     */
    @TableField(value = "review_status")
    private Integer reviewStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}